package com.jjclub.service;

import com.jjclub.entity.JjclubMenu;
import com.jjclub.mapper.JjclubMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;



@Service
public class Test01Service /*implements Test01*/ {

    @Autowired
    private JjclubMenuMapper jjclubMenuMapper;


    @Transactional
    public void deal()  {
        JjclubMenu a = new JjclubMenu();
        a.setName("事务");
        jjclubMenuMapper.insert(a);
        System.out.println("one:======"+a);
        int b=1/0;
    }

}
